package com.wen.pojo.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.wen.pojo.Orders;
import com.wen.pojo.Product;
import lombok.Data;

import java.util.List;

@Data
public class ProductAndOrdersAndOrdersDetails extends Orders {
    private long ids;
    private long productId;
    private long ordersId;
    private long amount;
    private double price;
    private double subtotal;
    private String backTag;
    private String backReason;
    private String backState;


//    private List<Product> productList;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer pid;

    private String name;

    private String picture;

    @TableField("mainPictures")
    private String mainpictures;

    private Integer typeId;

    @TableField("brandId")
    private Integer brandid;

    @TableField("`desc`")
    private String desc;

    private Float priceproduct;

    @TableField("oldPrice")
    private Float oldprice;

    private Float discount;

    private String inventory;

    @TableField("orderNum")
    private Integer ordernum;

    private String unit;

    private Integer onOff;

    @TableField("STATUS")
    private String status;


}
